home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / text0588.txt < prev    next >
Encoding:
Text File  |  1994-09-20  |  1.2 KB  |  37 lines

  1. > I use ASLFileRequest to get a file, then I assign whatever it returns 
  2. > (a file with its path) to a string variable and try to use WTitle to 
  3. > change window's title to display that file:
  4. >      WTitle filepath$,"my screens name"
  5. > The screen's and window's titles get somehow screwd up after the next 
  6. > window event it would seem. It contains some random strings, from 
  7. > file requester, or etc...
  8.  
  9. I got window title cockups when using previous versions of the window library
  10. in Blitz.  My problems though have cleared up since I started using the
  11. newer versions.
  12.  
  13. What would cause mine to fuckup is something like:
  14.  
  15.         WTitle "Help me please","Steve's little prog..."
  16.         Execute_ "Time",0,0
  17.  
  18. This would cause the window title to change to "Time" - very dodgy indeed.
  19.  
  20. Wtitle most probably just stores the string you give and then calls the OS
  21. command SetWindowTitle.  You could try doing this yourself:
  22.  
  23.         mytitle$="Myname"
  24.         SetWindowTitle_ peek.l(addr window(0)),mytitle$,0
  25.  
  26.             (The 0 on the end means don't change the screen title
  27.              This stops the title being constantly redraw).
  28.  
  29. Do you subscribe to Blitzs bum magazine? If you do then you should get a version
  30. of the library off them that works properly.
  31.  
  32.  
  33. Hope this helps (in some little way ;-)),
  34. Steve Mc.
  35.  
  36.  
  37.